
import supplier from '@/api/eims/purchase/supplierAPI'
import order from '@/api/eims/purchase/orderAPI'
import Mixins from '@/views/mixins'
export default {
  mixins: [Mixins],
  created () {
    this.initPageList()
  },
  methods: {
    getRequestType (opt) {
      if (this.id === 'order') {
        return order.getOrderListAPI
      } else if (this.id === 'supplier') {
        if (opt === 'delete') {
          return supplier.deleteSupplierAPI
        } else {
          return supplier.getSupplierListAPI
        }
      }
    }
  }
}
